package model

import "car-thirdparty-api/internal/model/entity"

type CarSearchReq struct {
	Plate string `json:"plate" v:"required#车牌号不能为空"`
}

type CarSearchItem struct {
	CarNum     string `json:"carNum"`
	PhoneNum   string `json:"phoneNum"`
	Name       string `json:"name"`
	DataType   int    `json:"dataType"`
	DeptName   string `json:"deptName"`
	JobId      string `json:"jobId"`
	Identity   string `json:"identity"`
	CUserName  string `json:"cUserName"`
	UUserName  string `json:"uUserName"`
	BUserName  string `json:"bUserName"`
	StartTime  string `json:"startTime"`
	EndTime    string `json:"endTime"`
	ExpireTime string `json:"expireTime"`
}

type BizUser struct {
	UserName int    `json:"userName"`
	NickName string `json:"nickName"`
}

type BizDept struct {
	DeptId   int    `json:"deptId"`
	DeptName string `json:"deptName"`
}

type CardSearch struct {
	*entity.Card
	BUser *BizUser `json:"bUser"`
	CUser *BizUser `json:"cUser"`
	UUser *BizUser `json:"uUser"`
	Dept  *BizDept `json:"dept"`
}

type CardOnlineSearch struct {
	*entity.CardOnline
	BUser *BizUser `json:"bUser"`
	CUser *BizUser `json:"cUser"`
	UUser *BizUser `json:"uUser"`
	Dept  *BizDept `json:"dept"`
}

type BookingCardSearch struct {
	*entity.BookingCard
	BUser *BizUser `json:"bUser"`
	CUser *BizUser `json:"cUser"`
	UUser *BizUser `json:"uUser"`
	Dept  *BizDept `json:"dept"`
}

type TempOnlineSearch struct {
	*entity.TempOnline
	BUser *BizUser `json:"bUser"`
	CUser *BizUser `json:"cUser"`
	UUser *BizUser `json:"uUser"`
	Dept  *BizDept `json:"dept"`
}

type BlackListSearch struct {
	*entity.BlackListRecord
	BUser *BizUser `json:"bUser"`
	CUser *BizUser `json:"cUser"`
	UUser *BizUser `json:"uUser"`
	Dept  *BizDept `json:"dept"`
}
